package net.csdn.business.common.domain.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author wanghang
 * @date 2022/6/15 11:37
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserEmailDto implements Serializable {

    @NotBlank(message = "邮箱不能为空")
    @Email
    private String email;

    @NotBlank(message = "邮箱验证码不能为空")
    private String emailCode;

    private String oldEmail;
    private String oldEmailCode;

    private String userId;
    private String token;

    private String currUserId;
}
